<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

    <script>

        // 拿到数据之后先打印



        // 先请求到数据
        const xhr = new XMLHttpRequest();
        xhr.open('get', '../data/proData.json', true);
        xhr.send();
        xhr.onreadystatechange = function () {
            if (this.readyState === 4 && this.status === 200) {
                data = this.responseText;
                data = JSON.parse(data);
                console.log(data);

                const arr = data.list;
                console.log(arr);


            }
        }
    </script>

</body>

</html>